package com.project.bean;

/**
 * @author lyl
 */
public class CommentBean {
    /**
     * 评论id
     */
    private int commentId;
    /**
     * 评论内容
     */
    private String comment;
    /**
     * 评论所属用户对象
     */
    private EUserBean eUserBean;
    /**
     * 用户所评论的产品
     */
    private ProductBean productBean;

    public CommentBean() {
    }

    public CommentBean(String comment, int userId, int productId) {
        this.comment = comment;
        this.eUserBean = new EUserBean();
        this.productBean = new ProductBean();
        this.eUserBean.setUserId(userId);
        this.productBean.setProductId(productId);
    }

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public EUserBean geteUserBean() {
        return eUserBean;
    }

    public void seteUserBean(EUserBean eUserBean) {
        this.eUserBean = eUserBean;
    }

    public ProductBean getProductBean() {
        return productBean;
    }

    public void setProductBean(ProductBean productBean) {
        this.productBean = productBean;
    }

    @Override
    public String toString() {
        return "CommentBean{" +
                "commentId=" + commentId +
                ", comment='" + comment + '\'' +
                ", eUserBean=" + eUserBean +
                ", productBean=" + productBean +
                '}' + "\n";
    }
}
